package com.ufm.patient.util;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class PatientSearch {
	private String name;
	private char gender;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date fromDate;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date toDate;
	private Integer age;
	private String medicalInsType;
	private String address;
	private String contactNumber;
	private Integer qqNumber;
	private String idCard;
	private String dragAllergy;
	private String self_condition;
		
	public PatientSearch() {
		super();
	}
	public PatientSearch(String name, char gender, Date fromDate, Date toDate,
			Integer age, String medicalInsType, String address,
			String contactNumber, Integer qqNumber, String idCard,
			String dragAllergy, String self_condition) {
		super();
		this.name = name;
		this.gender = gender;
		this.fromDate = fromDate;
		this.toDate = toDate;
		this.age = age;
		this.medicalInsType = medicalInsType;
		this.address = address;
		this.contactNumber = contactNumber;
		this.qqNumber = qqNumber;
		this.idCard = idCard;
		this.dragAllergy = dragAllergy;
		this.self_condition = self_condition;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public char getGender() {
		return gender;
	}
	public void setGender(char gender) {
		this.gender = gender;
	}
	public Date getFromDate() {
		return fromDate;
	}
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public Date getToDate() {
		return toDate;
	}
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getMedicalInsType() {
		return medicalInsType;
	}
	public void setMedicalInsType(String medicalInsType) {
		this.medicalInsType = medicalInsType;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getContactNumber() {
		return contactNumber;
	}
	public void setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
	}
	public Integer getQqNumber() {
		return qqNumber;
	}
	public void setQqNumber(Integer qqNumber) {
		this.qqNumber = qqNumber;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getDragAllergy() {
		return dragAllergy;
	}
	public void setDragAllergy(String dragAllergy) {
		this.dragAllergy = dragAllergy;
	}
	public String getSelf_condition() {
		return self_condition;
	}
	public void setSelf_condition(String self_condition) {
		this.self_condition = self_condition;
	}
	
	
}
